﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.BL.Entities;
using QUANLYCHAMCONG.DAO.DAO;
using System.Data;

namespace QUANLYCHAMCONG.BL.BUS
{
   public class VANTAYBUS
    {
       public VANTAYBUS() { }
        public static bool Insert(VANTAY vt)
        {
            VANTAYDAO dao = new VANTAYDAO();
            return dao.Insert(vt);
        }
        public static bool Update(VANTAY vt)
        {
            VANTAYDAO dao = new VANTAYDAO();
            return dao.Update(vt);
        }
        public static bool Delete(VANTAY vt)
        {
            VANTAYDAO dao = new VANTAYDAO();
            return dao.Delete(vt);
        }
        public static DataTable SelectAll()
        {
            VANTAYDAO dao = new VANTAYDAO();
            return dao.SelectALL();
        }
        public static DataTable SelectPK(VANTAY vt)
        {
            VANTAYDAO dao = new VANTAYDAO();
            return dao.SelectByPK(vt);
        }
        public static string GetID()
        {
            VANTAYDAO dao = new VANTAYDAO();
            return "VT" + dao.GetID().ToString();
        }
    }
}
